package com.xuetang9.t9.hotel.mapper;


import com.xuetang9.t9.hotel.beans.StaffInfo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Pang
 */
@Repository
public interface IStaffInfoMapper {

    /**
     * 根据员工id查找
     * @param id
     * @return
     */
    @Select("SELECT * FROM g_staffinfo WHERE staff_id = #{id}")
    StaffInfo selectById(int id);

    /**
     * 全部查找
     * @return
     */
    @Select("SELECT * FROM g_staffinfo")
    List<StaffInfo> selectAll();
}
